package com.example.book.common;

import com.example.book.model.Member;

public class MemberFactory {

    public static Member getMember(int type){
        Member member=null;
      if(type==Constant.GOLD){

          member  = new Member(Constant.GOLD, 0, Utils.getId());
      }else if(type==Constant.SILVER){

          member  = new Member(Constant.SILVER, 0, Utils.getId());
      }else{

          member  = new Member(Constant.COPER, 0, Utils.getId());
      }
      return member;
    }
}
